package xyz.zhzby.cyzx.oj.service;

import xyz.zhzby.cyzx.oj.dto.response.CategoryResponse;
import xyz.zhzby.cyzx.oj.dto.response.Info;
import xyz.zhzby.cyzx.oj.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.zhzby.cyzx.servicebase.domain.RestResponse;

import java.util.List;

/**
 * <p>
 * 试题分类 服务类
 * </p>
 *
 * @author zby
 * @since 2021-12-26
 */
public interface ICategoryService extends IService<Category> {

    RestResponse<String> createCategory(String categoryName);

    RestResponse<List<CategoryResponse>> getAllCategorys();

    List<Info> getLinkCategorysByProblemID(Long problemID);
}
